import React, { Component } from 'react'
import { connect } from '../utils/connect'

class C extends Component {
  render() {
    return (
      <div>
        C
        {console.log(this.props, '--------props')}
      </div>
    )
  }
}

// 获取回调函数的返回值
const mapState = (state) => {
  console.log('state:', state)
  return {
    ...state
  }
}

export default connect(mapState, () => { })(C)
